package buxfer;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

import java.util.concurrent.TimeUnit;

/**
 * Created with IntelliJ IDEA.
 * User: stem
 * Date: 15.11.13
 * Time: 2:04
 * To change this template use File | Settings | File Templates.
 */
public class buxferReg {
    private WebDriver driver;
    //@BeforeTest
    public  void before(){
        driver=new FirefoxDriver();
        driver.get("https://www.buxfer.com");
        driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
    }


  //  @Test
    public void reg() throws InterruptedException {
        Home home=new Home(driver);
        Reg reg=home.reg();
        assertPage asrtpage2=reg.regConfirm();
        Thread.currentThread().sleep(3000);
        asrtpage2.assertLoginTrue(asrtpage2.getUrl());

    }
    //@AfterTest
    public void after(){
        driver.manage().deleteAllCookies();
        driver.quit();
    }

}
